package model

import (
	"gorm.io/gorm"
	"time"
)

type Evaluates struct {
	Id        uint32         `gorm:"column:id;type:int UNSIGNED;primaryKey;not null;" json:"id"`
	UsersId   uint32         `gorm:"column:users_id;type:int UNSIGNED;not null;" json:"users_id"`
	GoodsId   uint32         `gorm:"column:goods_id;type:int UNSIGNED;not null;" json:"goods_id"`
	Comment   string         `gorm:"column:comment;type:varchar(255);not null;" json:"comment"`
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
}
